package org.hq.upvideo;

import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;

import static org.hq.upvideo.EupVideoTaskType.PARSE_HTML_TASK_SAVE_SIHU_VIDEO_PLAY_PAGE;

@SpringBootTest
class UpVideoTaskSiHuTest {


    @Test
    void parseMenu() {
        VideoTaskEntity ent = new VideoTaskEntity();
        ent.setTaskType(EupVideoTaskType.PARSE_HTML_SIHU_MENU);
        ent.setWebHost("https://www.bf6fc1.com");
        ent.setTaskPath("/av/index.html");
        UpVideoTaskSiHu up = new UpVideoTaskSiHu(ent);
        up.run();
    }

    @Test
    void run() {
        VideoTaskEntity ent = new VideoTaskEntity();
        ent.setTaskType(EupVideoTaskType.PARSE_HTML_SIHU_MENU);
        ent.setWebHost("https://www.72eaab.com");
        ent.setTaskPath("/Enter/home.html");
        UpVideoTaskSiHu up = new UpVideoTaskSiHu(ent);
        up.run();
    }

    @Test
    void tesTvideoInfo() {
        VideoTaskEntity ent = new VideoTaskEntity();
        ent.setTaskType(PARSE_HTML_TASK_SAVE_SIHU_VIDEO_PLAY_PAGE);
        ent.setGroupId(47);
        ent.setWebHost("https://www.399e4f.com");
        ent.setM3u8Host("https://m3u8.93cdn.com");
        ent.setTaskPath("/html/202409/95658.html");
        ent.setGroupsPath("/av/nxx/");
        UpVideoTaskSiHu up = new UpVideoTaskSiHu(ent);
        up.run();
    }

    @Test
    void setEntity() {
    }

    @Test
    void testEquals() {
    }

    @Test
    void canEqual() {
    }

    @Test
    void testHashCode() {
    }

    @Test
    void testToString() {
    }

    @Test
    void testRun() {
    }
}